package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.ShopGoodsItemEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

import java.util.List;

/**
 * Created by JacobHHH on 2018/4/20.
 */

public interface ShopGoodsListContract {

    interface View extends BaseMvpView{

        void setData(List<ShopGoodsItemEntity> data,boolean isLoadMore);

        void onDataFailure(String err);
    }

    interface Presenter{
        /**
         *
         * @param shop_id 商家id
         * @param page
         */
        void loadData(String shop_id,String page,boolean isLoadMore);
    }

    interface Model{

        void loadData(String shop_id, String page, XxBaseHttpObserver<List<ShopGoodsItemEntity>> httpObserver);
    }
}
